﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniErp.Entity.DataStreams.BOs
{
    /// <summary>
    /// 业务异常实体
    /// </summary>
    public class ExceptionBO : Exception
    {
        /// <summary>
        /// 状态码
        /// </summary>
        public int Code { get; }
        /// <summary>
        /// 结果信息
        /// </summary>
        public override string Message { get; }
        public ExceptionBO(string _message, int _code = 400)
        {
            Code = _code;
            Message = _message;
        }
    }
}
